@extends('layouts.app')
@section('title','服务详情列表')
@section('content')
<!-- start: Content -->
<div class="row-fluid">		
	<div class="box span12">
		<div class="box-header" data-original-title="">
			<h2><i class="icon-user"></i><span class="break"></span>服务详情列表</h2>
		</div>
		<div class="box-content">
		<form action="{{ URL('serve/delete') }}" method='POST'>
			{{ method_field('DELETE') }}
			{{ csrf_field() }}
			<table class="table table-striped" >
				<thead>
					<tr>
				  		<th style='width:10%;'>
				  			<a href='{{ URL('serve/create') }}' class="btn btn-primary">添加</a>
				  			<button type="submit" class="btn btn-danger" >删除</button>
				  		</th>
				  	</tr>
				  </thead>
			</table>
			<table class="table table-bordered table-hover">
			<thead>
			  	<tr>
				  	<th style='width:15px;text-align: center;'>
				  		<!-- <span style=''><input id="all" type="checkbox"></span> -->
				  	</th>
					<th  style='width:4%;'>序号</th>
					<th style='width:50%'>单项服务</th>
					<th style='width:8%;'>现价(元)</th>
					<th style='width:8%;'>会员价(元)</th>
					<th style='width:8%;'>原价(元)</th>
					<th style='width:10%;'>创建时间</th>
					<th style='width:8%;'>操作</th>
			  	</tr>
			</thead>   
			<tbody>
				@foreach($serve as $sv)
					<tr>
						<td>
							<div class="checkbox">
							  <label style='line-height: 90px;' id='checkboxs'>
							    <input id="mychk" type="checkbox" name="id[]" value="{{ $sv->id }}">
							  </label>
							</div>
						</td>
						<td style='text-align: center;line-height: 150px;'>{{ $sv->id }}</td>
						<td>
							<img src="{{ $sv->path }}"style='width:240px;height:133px;float:left;margin-right: 10px;'>
							<div style='float:left;'>
								<span style='float:left;font-weight:bold;'>{{ $sv->title }}</span><br>
								<p style='float:left;width:225px;'>
									{{ $sv->commit }}
								</p>
							</div>
						</td>
						<td class="center"  style='line-height: 150px;'>{{ $sv->price }}</td>
						<td class="center" style='line-height: 150px;'>{{ $sv->is_price }}</td>
						<td class="center" style='line-height: 150px;'>{{ $sv->vip_price }}</td>
						<td class="center" style='line-height: 150px;'>{{ $sv->created_at }}</td>
						<td class="center" style='text-align: center;line-height: 150px;'>
							<a class="btn btn-primary" href='{{ URL("serve/$sv->id/edit") }}'>
								编辑
							</a>
						</td>
					</tr>
				@endforeach
			  </tbody>
		  </table>
		</form>
		</div>
	</div><!--/span-->

</div><!--/row-->
<!-- end: Content -->
@stop
